#include<iostream>
#include<stdlib.h>
using namespace std;
int main(int argc,char**argv){
      printf("%s\n",argv[1]);
      printf("%s\n",argv[2]);
      FILE*fp1=fopen(argv[1],"r");
      if(fp1==NULL)
	  	return 1;
      FILE*fp2=fopen(argv[2],"w");
      if(fp2==NULL)
	  	return 1;
      char ch;
      while(!feof(fp1)){
      	ch=fgetc(fp1);
      	printf("%3c",ch);
      	fputc(ch,fp2);
	  }
	  fclose(fp1);
	  fclose(fp2);
	  printf("\n");
	  FILE*fp3=fopen(argv[2],"r"); 
	  while(!feof(fp3)){
	  	ch=fgetc(fp3);
	  	printf("%3c",ch);
	  }
	  
}
